﻿<%@ Page Language="C#" MasterPageFile="~/user/MasterPage.master" AutoEventWireup="true" CodeFile="profile.aspx.cs" Inherits="user_profile" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style5
        {
            width: 376px;
            margin-bottom: 0px;
        }
        .style6
        {
            width: 167px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
       
            <p>
                <span class="title1">Update your personal profile</span></p>
            <p>
                Your nickname:<asp:Label ID="Label1" runat="server" CssClass="title2" 
                    Text="Label"></asp:Label>
            </p>
            <p>
                new nickname
                <asp:TextBox ID="TextBox1" runat="server" MaxLength="10"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="update" onclick="Button1_Click" />
            </p>
        <hr />
            <p>
                您的個人簡介</p>
                            
                                <asp:TextBox ID="TextBox5" runat="server" Height="84px" TextMode="MultiLine" 
                                    Width="406px"></asp:TextBox>
   &nbsp;
                            <p>
                                <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="更新個人簡介" />
                            </p>
        <hr />

                            
                Your profile picture
        <asp:Image ID="Image1" runat="server" />
    <p>
    
        <asp:FileUpload ID="FileUpload1" runat="server" />
    
    <p>
        <asp:Button ID="Button2" runat="server" Text="Upload" onclick="Button2_Click" />
    
            <hr />
<p>
                Change your password</p>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table class="style5">
                        <tr>
                            <td class="style6">
                                Old password</td>
                            <td>
                                <asp:TextBox ID="TextBox2" runat="server" 
                TextMode="Password" ValidationGroup="pwd"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="TextBox2" ErrorMessage="?" 
                ValidationGroup="pwd"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style6">
                                New password</td>
                            <td>
                                <asp:TextBox ID="TextBox3" runat="server" 
                TextMode="Password" ValidationGroup="pwd"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="TextBox3" ErrorMessage="?" 
                ValidationGroup="pwd"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style6">
                                Confirm</td>
                            <td>
                                <asp:TextBox ID="TextBox4" runat="server" 
                TextMode="Password" ValidationGroup="pwd"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                    ControlToValidate="TextBox4" ErrorMessage="?" 
                ValidationGroup="pwd"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                    ControlToCompare="TextBox3" ControlToValidate="TextBox4" 
                ErrorMessage="x" ValidationGroup="pwd"></asp:CompareValidator>
                            </td>
                        </tr>
                    </table>
                    <asp:Button ID="Button3" runat="server" Height="26px" onclick="Button3_Click" 
                        Text="ok" ValidationGroup="pwd" />
                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="Label" 
                        Visible="False"></asp:Label>
                    <br />
                </ContentTemplate>
            </asp:UpdatePanel>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
</asp:Content>

